﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoiffeurProject.DBMS.Utils
{
    public static class DataConversion
    {
        public static DateTime StringToDate(string str)
        {
            var strings = str.Split(new char[] { '-' });

            return new DateTime(int.Parse(strings[0]), int.Parse(strings[1]), int.Parse(strings[2]));
        }

    }
}
